﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace Kelper.Domain.Models
{
    public class RecipeSearchResult
    {
        public Recipe Recipe { get; set; }
        public double Priority
        {
            get { return priority; }
            set
            {
                if (value < 0)
                    value = 0;
                else if (value > 1)
                    value = 1;
                priority = value;
            }
        }
        private double priority;
    }
}
